import vm from "vue";
import Vuex from "vuex";
import user from "./modules/user";
import getters from "./getters";

if (WXEnvironment.platform === "Web") {
    vm.use(Vuex);
} else {
    Vue.use(Vuex);
}

const store = new Vuex.Store({
    modules: {
        user
    },
    getters
});

module.exports = store;
